/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ez2find.manager;

import com.ez2find.model.Message;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author org.@le
 */
@Local
public interface MessageManagerLocal {

    void create(Message message) throws Exception;

    void delete(Message message) throws Exception;

    Message find(long id);

    List<Message> listAll();

    void update(Message message) throws Exception;

    public java.util.List<com.ez2find.model.Message> messagesTopic(com.ez2find.model.Topic topic);

    public java.util.List<com.ez2find.model.Message> messagesMessage(com.ez2find.model.Message message);
    
}
